package com.lollipop.ucenter.rpc.repository;

import com.lollipop.common.annotation.MybatisDao;
import com.lollipop.common.persistence.CrudDao;
import com.lollipop.ucenter.rpc.model.Role;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@MybatisDao
@Repository
public interface RoleDao extends CrudDao<Role> {

    /**
     * 查找用户拥有的角色集合
     *
     * @param userId
     * @return
     */
    public Set<Role> findRolesByUserId(String userId);

}